--RedzoneRPG
--By Kylegar

local Items = {}
local rzItem = {}

local ItemReg = {}
local ItemActive = {}



function Items.Register( ItemClassName , ItemTab )
	ItemReg[ItemClassName]=ItemTab
end


function Items.Create( ItemClassName )
    if!(type(ItemClassName)==string) then return end
    if!(ItemReg[ItemClassName]) then
	  ErrorNoHalt("Item: "..ItemClassName.." Does Not Exist\n")
	  return
	end	
	
	local t = table.Copy(ItemReg[ItemClassName])
	setmetatable(t,rzitem)
	rzItem.__self = t
	rzItem.__index = t
	t.__self = t
	
	return t
	

end

function rzItem:SetPlayer(ply)
	self.Ply = ply
end

function rzItem:GetPlayer()
	return self.Ply
end





